
package gov.chinatax.ctcps.generator.form;

import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for nzjyZt.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="nzjyZtForm"
 */
public class NzjyZtForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String _jyztbh = null;
   private java.lang.String _nd = null;
   private java.lang.String _jyBz = null;
   private java.lang.String _jyztDm = null;
   private java.lang.String _sbsj = null;
   private java.lang.String _hzztbh = null;
   private java.lang.String _zjhzbh = null;
   private java.lang.String _dwbh = null;
   private java.lang.String _bhyy = null;
   private java.lang.String _hzsjBz = null;
   private java.lang.String _yhzBz = null;
   private java.lang.String _yydBz = null;
   private java.lang.String _sx = null;
   private java.lang.String _zt1 = null;
   private java.lang.String _zt2 = null;

   /**
    * Standard constructor.
    */
   public NzjyZtForm() {
   }

   /**
    * Returns the jyztbh
    *
    * @return the jyztbh
    */
   public java.lang.String getJyztbh() {
      return _jyztbh;
   }

   /**
    * Sets the jyztbh
    *
    * @param jyztbh the new jyztbh value
    */
   public void setJyztbh(java.lang.String jyztbh) {
      _jyztbh = jyztbh;
   }
   /**
    * Returns the nd
    *
    * @return the nd
    */
   public java.lang.String getNd() {
      return _nd;
   }

   /**
    * Sets the nd
    *
    * @param nd the new nd value
    */
   public void setNd(java.lang.String nd) {
      _nd = nd;
   }
   /**
    * Returns the jyBz
    *
    * @return the jyBz
    */
   public java.lang.String getJyBz() {
      return _jyBz;
   }

   /**
    * Sets the jyBz
    *
    * @param jyBz the new jyBz value
    */
   public void setJyBz(java.lang.String jyBz) {
      _jyBz = jyBz;
   }
   /**
    * Returns the jyztDm
    *
    * @return the jyztDm
    */
   public java.lang.String getJyztDm() {
      return _jyztDm;
   }

   /**
    * Sets the jyztDm
    *
    * @param jyztDm the new jyztDm value
    */
   public void setJyztDm(java.lang.String jyztDm) {
      _jyztDm = jyztDm;
   }
   /**
    * Returns the sbsj
    *
    * @return the sbsj
    */
   public java.lang.String getSbsj() {
      return _sbsj;
   }

   /**
    * Sets the sbsj
    *
    * @param sbsj the new sbsj value
    */
   public void setSbsj(java.lang.String sbsj) {
      _sbsj = sbsj;
   }
   /**
    * Returns the hzztbh
    *
    * @return the hzztbh
    */
   public java.lang.String getHzztbh() {
      return _hzztbh;
   }

   /**
    * Sets the hzztbh
    *
    * @param hzztbh the new hzztbh value
    */
   public void setHzztbh(java.lang.String hzztbh) {
      _hzztbh = hzztbh;
   }
   /**
    * Returns the zjhzbh
    *
    * @return the zjhzbh
    */
   public java.lang.String getZjhzbh() {
      return _zjhzbh;
   }

   /**
    * Sets the zjhzbh
    *
    * @param zjhzbh the new zjhzbh value
    */
   public void setZjhzbh(java.lang.String zjhzbh) {
      _zjhzbh = zjhzbh;
   }
   /**
    * Returns the dwbh
    *
    * @return the dwbh
    */
   public java.lang.String getDwbh() {
      return _dwbh;
   }

   /**
    * Sets the dwbh
    *
    * @param dwbh the new dwbh value
    */
   public void setDwbh(java.lang.String dwbh) {
      _dwbh = dwbh;
   }
   /**
    * Returns the bhyy
    *
    * @return the bhyy
    */
   public java.lang.String getBhyy() {
      return _bhyy;
   }

   /**
    * Sets the bhyy
    *
    * @param bhyy the new bhyy value
    */
   public void setBhyy(java.lang.String bhyy) {
      _bhyy = bhyy;
   }
   /**
    * Returns the hzsjBz
    *
    * @return the hzsjBz
    */
   public java.lang.String getHzsjBz() {
      return _hzsjBz;
   }

   /**
    * Sets the hzsjBz
    *
    * @param hzsjBz the new hzsjBz value
    */
   public void setHzsjBz(java.lang.String hzsjBz) {
      _hzsjBz = hzsjBz;
   }
   /**
    * Returns the yhzBz
    *
    * @return the yhzBz
    */
   public java.lang.String getYhzBz() {
      return _yhzBz;
   }

   /**
    * Sets the yhzBz
    *
    * @param yhzBz the new yhzBz value
    */
   public void setYhzBz(java.lang.String yhzBz) {
      _yhzBz = yhzBz;
   }
   /**
    * Returns the yydBz
    *
    * @return the yydBz
    */
   public java.lang.String getYydBz() {
      return _yydBz;
   }

   /**
    * Sets the yydBz
    *
    * @param yydBz the new yydBz value
    */
   public void setYydBz(java.lang.String yydBz) {
      _yydBz = yydBz;
   }
   /**
    * Returns the sx
    *
    * @return the sx
    */
   public java.lang.String getSx() {
      return _sx;
   }

   /**
    * Sets the sx
    *
    * @param sx the new sx value
    */
   public void setSx(java.lang.String sx) {
      _sx = sx;
   }
   /**
    * Returns the zt1
    *
    * @return the zt1
    */
   public java.lang.String getZt1() {
      return _zt1;
   }

   /**
    * Sets the zt1
    *
    * @param zt1 the new zt1 value
    */
   public void setZt1(java.lang.String zt1) {
      _zt1 = zt1;
   }
   /**
    * Returns the zt2
    *
    * @return the zt2
    */
   public java.lang.String getZt2() {
      return _zt2;
   }

   /**
    * Sets the zt2
    *
    * @param zt2 the new zt2 value
    */
   public void setZt2(java.lang.String zt2) {
      _zt2 = zt2;
   }


   /**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      if(getJyztbh() == null) {
         errors.add("jyztbh", new ActionError("error.jyztbh.required"));
      }
      if(getJyBz() == null) {
         errors.add("jyBz", new ActionError("error.jyBz.required"));
      }
      if(getJyztDm() == null) {
         errors.add("jyztDm", new ActionError("error.jyztDm.required"));
      }
      if(getYhzBz() == null) {
         errors.add("yhzBz", new ActionError("error.yhzBz.required"));
      }
      if(getYydBz() == null) {
         errors.add("yydBz", new ActionError("error.yydBz.required"));
      }
      // TODO test format/data
      return errors;
   }
}
